<div style="width:100%;height:100%;" class="modal" ng-controller="KisBpmAssignmentPopupCtrl">
    <div style="width:80%;height:100%;" class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-hidden="true" ng-click="close()">&times;
                </button>
                <h3 translate>PROPERTY.ASSIGNMENT.TITLE</h3>
            </div>
            <div class="modal-body">
                <button ng-click="search(searchValue)" class="layui-btn layui-btn-xs pull-right">搜索</button>
                <input id="name" class="pull-right " type="text" ng-model="searchValue" placeholder="用户名/角色名">
                <div class="row row-no-gutter">
                    <div class="col-xs-4">
                        <div class="row row-no-gutter">
                            <div class="form-group">
                                <label for="assigneeField">{{'PROPERTY.ASSIGNMENT.ASSIGNEE'
                                    | translate}}</label> <input type="text" id="assigneeField"
                                                                 class="form-control" ng-model="assignment.assignee"
                                                                 ng-click="selectAssignee()"
                                                                 value="{{assignment.assignee}}"/>
                            </div>
                        </div>

                        <div class="row row-no-gutter">
                            <div class="form-group">
                                <label for="userField">{{'PROPERTY.ASSIGNMENT.CANDIDATE_USERS'
                                    | translate}}</label>
                                <div ng-repeat="candidateUser in assignment.candidateUsers">
                                    <input id="userField" class="form-control" type="text"
                                           ng-model="candidateUser.value" value="{{candidateUser}}"
                                           ng-click="selectCandidate()"/> <i
                                        class="glyphicon glyphicon-minus clickable-property"
                                        ng-click="removeCandidateUserValue($index)"></i> <i
                                        ng-if="$index == (assignment.candidateUsers.length - 1)"
                                        class="glyphicon glyphicon-plus clickable-property"
                                        ng-click="addCandidateUserValue($index)"></i>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="groupField">{{'PROPERTY.ASSIGNMENT.CANDIDATE_GROUPS'
                                    | translate}}</label>
                                <div ng-repeat="candidateGroup in assignment.candidateGroups">
                                    <input id="groupField" class="form-control" type="text" readonly="readonly"
                                           ng-model="candidateGroup.value" value="{{candidateGroup}}"
                                           ng-click="selectGroup()"/>
                                    <i class="glyphicon glyphicon-minus clickable-property"
                                       ng-click="removeCandidateGroupValue($index)"></i>
                                    <i ng-if="$index == (assignment.candidateGroups.length - 1)"
                                       class="glyphicon glyphicon-plus clickable-property"
                                       ng-click="addCandidateGroupValue($index)"></i>
                                </div>
                            </div>
                        </div>
                    </div>
                    <strong class="pull-left">{{selectTitle}}</strong>
                    <div class="col-xs-8">
 						<span class="mb10">
							<select class="pull-right" ng-change="change(selectedProject)"
                                    id="project" ng-if="projects.length>0" ng-model="selectedProject"
                                    ng-options="project.pkid as project.projectName for project in projects">
							</select>
						</span>
                        <div style="min-height:350px;" class="default-grid ng-scope ngGrid ng1521010657341 unselectable"
                             ng-grid="gridOptions"></div>
                    </div>
                </div>
            </div>

            <div class="modal-footer">
                <!--  <button ng-click="close()" class="btn btn-primary" translate>ACTION.CANCEL</button>-->
                <button ng-click="save()" class="layui-btn  layui-btn-ms" translate>ACTION.SAVE</button>
            </div>
        </div>
    </div>
</div>